// const { ipcRenderer } = require('electron')
// import { oopsTime } from '@/utils/alertMsg.ts';
// //主进程、渲染进程通讯
// export const sendMsgFun = (fun: string, data: any) => {
//   console.log(fun, data,"😄");
//   oopsTime(data.title, data.body, "e",0);
//   ipcRenderer.send(fun, data) //异步
// }

import { contextBridge, ipcRenderer } from 'electron';

contextBridge.exposeInMainWorld('electron', {
  selectFolder: () => ipcRenderer.invoke('select-folder'),
});